<!DOCTYPE html>
<html>

<head>
    <title>
        <%= title %>
    </title>
    <%- include common %>
        <!-- <link rel='stylesheet' href='/stylesheets/style.css' /> -->
</head>

<body>
    <%- include('head',{title:'index',username:username})%>
        <div class="container" style="margin-top: 60px;">
            <h1>
                <%= title %>
            </h1>
            <p>Welcome to
                <%= title %>
            </p>
        </div>
        <%  if(username){  %>
            <div class="container">
                <p>欢迎你，
                    <%- username %>
                </p>
                <button onclick="location.href='/leaveout'" class="btn btn-danger">注销登录</button>
            </div>
            <% }else{ %>
                <div class="container">
                    <button class="btn btn-success" onclick="location.href='/login'">请登录</button>
                    <button class="btn btn-primary" onclick="location.href='/register'">注册用户</button>
                </div>
                <%    }  %>


                    <%- include foot %>



                        <!-- <a class="btn btn-default" href="#" role="button">Link</a>
    <button class="btn btn-default" type="submit">Button</button>
    <input class="btn btn-default" type="button" value="Input">
    <input class="btn btn-default" type="submit" value="Submit"> -->
</body>

<style>
    /* .continer{
        width: 1200px;
    } */
</style>

<script>
    // var nowtime = function() {
    //     var time = new Date()
    //     var yaer = time.getFullYear()
    //     var month = time.getMonth()
    //     var day = time.getDate()
    //     var hours = time.getHours()
    //     var min = time.getMinutes()
    //     var seconds = time.getSeconds()

    // }
</script>


</html>